﻿<!--{inc(header.view.html)}-->

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                     
                                                 <li><a href="#" class="nav_icon" target="mainframe">添加用户</a></li>
                                                 <li><a href="index.php?app=user&act=index"  target="mainframe">用户列表</a></li>

	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>新增用户</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>


                                   
                                   
                                   
                                   


<form  method="post" action="?app=user&act=post" >

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center" class="table_style">
<tbody>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td width="30%" >用户名称 :</td>
	<td><input type="text" maxlength="20" value="" name="data[username]"> <span class="red">*</span></td>
</tr>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td >密码 :</td>
	<td><input type="password" maxlength="20" value="" name="data[password]"> <span class="red">*</span></td>
</tr>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td >确认密码 :</td>
	<td><input type="password" maxlength="20" value="" name="data[check_passwd]"> <span class="red">*</span></td>
</tr>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td >E-Mail :</td>
	<td><input type="text" maxlength="50" value="" name="data[email]"> <span class="red">*</span></td>
</tr>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td >用户类型:</td>
	<td>
	<select name="data[user_type]">
		<option value="0"  >请选择用户类型....</option>
	
<?php foreach((array)$usertypedata as $_key => $_value ) { ?>
                                           
		<option value="{$_value.id}"  >{$_value.name}</option>
                
<?php } ?>
	
	</select>    
    </td>
</tr>


<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td >用户组 :</td>
	<td>
	<select name="data[roleid]">
	
<?php foreach((array)$roledata as $_key => $_value ) { ?>
                                           
		<option value="{$_value.value}" <?php if ($_key==3) { ?>selected <?php } ?> >{$_value.name}</option>
                
<?php } ?>
	
	</select>
	</td>
</tr>
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'"                                    v>
	<td >用户状态 :</td>
	<td><input type="radio" value="1" id="lock" name="data[locked]"><label for="lock">锁定</label>&nbsp;
	<input type="radio"  value="0" id="open" name="data[locked]" checked="checked"><label for="open">启用</label></td>
</tr>

<tr>
	<td></td>
	<td><input type="submit"  value=" 提 交 "  class="buton">&nbsp;&nbsp;<input type="button" value=" 返 回 " onClick="javascript:history.back();" class="buton"></td>
</tr>
</tbody></table>
</form>                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   

                 </div>

</div>



<!--{inc(footer.view.html)}-->